<template>
  <div>
     <div>{{a}}</div>
     <button @click=fn2()>逆转</button>
   </div>
</template>
 
<script>
export default {
  data() {
    return {
      a:'abcd',
    };
  },
  methods: {
    fn2(){
    this.a=this.a.split('').reverse().join('')
     console.log(this.a);
    }
  }
};
</script>

<style scoped>
     
</style>